/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.jfonia.commands;

import org.jfonia.view.main.ClipBoard;
import org.jfonia.view.main.Project;

/**
 *
 * @author Rik Bauwens
 */
public class PasteCommand extends Command
{
        private Object object;

        public PasteCommand()
        {

        }

        @Override
        protected void execute()
        {
                object = ClipBoard.getInstance().getData();
                Project.getInstance().add(object);
        }

        @Override
        protected void undo()
        {
                Project.getInstance().remove(object);
        }
}
